<%@ include file="/common/taglibs.jsp"%>

<head>
	<script charset="utf-8" src='<c:url value="/scripts/jquery.min.js"/>'></script>
</head>

<div>
	<table border="1">
		<tr>
			<td><fmt:message key="news.title"/></td>
			<td><fmt:message key="news.date"/></td>
			<td><fmt:message key="operate"/></td>
		</tr>
		<c:forEach items="${newsList}" var="news" varStatus="s">
		<tr>
			<td>${news.title}</td>
			<td>${news.date}</td>
			<td>
				<a href='<c:url value="/app/admin/news/edit?id=${news.id}"/>'><fmt:message key="edit"/></a> 
				<a href='<c:url value="/app/admin/news/delete?id=${news.id}"/>'><fmt:message key="delete"/></a>
			</td>
		</tr>
		</c:forEach>
	</table>
	
</div>
